package com.richpencil.utils;

import java.math.BigDecimal;


public class DecimalHelper {

	
	public static String valueOf(BigDecimal value)
	{	
		String paymoneyint= String.valueOf(value.intValue());
		return paymoneyint;
	}
	
	public static String weixinMoneyvalueOf(BigDecimal value)
	{
		
		BigDecimal paymoney=value.multiply(new BigDecimal(100));
		int f1 = paymoney.setScale(0, BigDecimal.ROUND_HALF_UP).intValue();
		
		String paymoneyint= String.valueOf(f1);
		return paymoneyint;
		
	}
	
	public static String weixinMoneyvalueOf(Integer value)
	{
		String paymoneyint= String.valueOf(value*100);
		return paymoneyint;
		
	}
	
}
